$(function () {
   var mySwiper=new Swiper('.swiper-container', {
   		effect : 'fade',
        loop:'true',
        pagination : '.swiper-pagination',
		paginationClickable :true,
        autoplay:2000,
        onInit: function(swiper){ //Swiper2.x的初始化是onFirstInit
            swiperAnimateCache(swiper); //隐藏动画元素
            swiperAnimate(swiper); //初始化完成开始动画
        },
        onSlideChangeEnd: function(swiper){
            swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
        }
    })
   $(".swiper-container").mouseover(function () {
            mySwiper.stopAutoplay();
        }).mouseout(function () {
            mySwiper.startAutoplay();
    })   
    
})